package gl.android.biyiqing.competent;

import gl.App;
import gl.android.biyiqing.R;
import gl.widget.AlbumControl;
import gl.widget.GridLayout;
import android.text.TextUtils;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;

public class AlbumControlBYQ extends AlbumControl{

	public AlbumControlBYQ(GridLayout gridlayout) {
		super(gridlayout);
	}
	@Override
	public void renderUrl(String url, ImageView iv) {
		
		if (TextUtils.isEmpty(url)) {
			iv.setScaleType(ScaleType.CENTER);
			iv.setImageResource(R.drawable.ic_mine_pic_btn_n);
			iv.setBackgroundColor(0xffeaeaea);
		}else{
			App.mFBitmap.display(iv, url);
		}
	}
	
}
